<%@ page import="fleet_management.MonthlyReport" %>



<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'vehicleName', 'error')} ">--%>
<%--	<label for="vehicleName">--%>
<%--		<g:message code="monthlyReport.vehicleName.label" default="Vehicle Name" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:textField name="vehicleName" value="${monthlyReportInstance?.vehicleName}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'vehicleNumber', 'error')} ">--%>
<%--	<label for="vehicleNumber">--%>
<%--		<g:message code="monthlyReport.vehicleNumber.label" default="Vehicle Number" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:textField name="vehicleNumber" value="${monthlyReportInstance?.vehicleNumber}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'fuelType', 'error')} ">--%>
<%--	<label for="fuelType">--%>
<%--		<g:message code="monthlyReport.fuelType.label" default="Fuel Type" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:textField name="fuelType" value="${monthlyReportInstance?.fuelType}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'servicingDate', 'error')} ">--%>
<%--	<label for="servicingDate">--%>
<%--		<g:message code="monthlyReport.servicingDate.label" default="Servicing Date" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:datePicker name="servicingDate" precision="day"  value="${monthlyReportInstance?.servicingDate}" default="none" noSelection="['': '']" />--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'servicingCost', 'error')} ">--%>
<%--	<label for="servicingCost">--%>
<%--		<g:message code="monthlyReport.servicingCost.label" default="Servicing Cost" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:field type="number" name="servicingCost" value="${fieldValue(bean: monthlyReportInstance, field: 'servicingCost')}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'maintenanceDate', 'error')} ">--%>
<%--	<label for="maintenanceDate">--%>
<%--		<g:message code="monthlyReport.maintenanceDate.label" default="Maintenance Date" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:textField name="maintenanceDate" value="${monthlyReportInstance?.maintenanceDate}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'typeOfMaintenance', 'error')} ">--%>
<%--	<label for="typeOfMaintenance">--%>
<%--		<g:message code="monthlyReport.typeOfMaintenance.label" default="Type Of Maintenance" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:textField name="typeOfMaintenance" value="${monthlyReportInstance?.typeOfMaintenance}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'maintenanceCost', 'error')} ">--%>
<%--	<label for="maintenanceCost">--%>
<%--		<g:message code="monthlyReport.maintenanceCost.label" default="Maintenance Cost" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:field type="number" name="maintenanceCost" value="${fieldValue(bean: monthlyReportInstance, field: 'maintenanceCost')}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'fuelConsumption', 'error')} ">--%>
<%--	<label for="fuelConsumption">--%>
<%--		<g:message code="monthlyReport.fuelConsumption.label" default="Fuel Consumption" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:field type="number" name="fuelConsumption" value="${fieldValue(bean: monthlyReportInstance, field: 'fuelConsumption')}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'totalFuelCost', 'error')} ">--%>
<%--	<label for="totalFuelCost">--%>
<%--		<g:message code="monthlyReport.totalFuelCost.label" default="Total Fuel Cost" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:field type="number" name="totalFuelCost" value="${fieldValue(bean: monthlyReportInstance, field: 'totalFuelCost')}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'rateOfPrivateUseKm', 'error')} ">--%>
<%--	<label for="rateOfPrivateUseKm">--%>
<%--		<g:message code="monthlyReport.rateOfPrivateUseKm.label" default="Rate Of Private Use Km" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:field type="number" name="rateOfPrivateUseKm" value="${fieldValue(bean: monthlyReportInstance, field: 'rateOfPrivateUseKm')}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'totalIncomeFromPrivateUse', 'error')} ">--%>
<%--	<label for="totalIncomeFromPrivateUse">--%>
<%--		<g:message code="monthlyReport.totalIncomeFromPrivateUse.label" default="Total Income From Private Use" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:field type="number" name="totalIncomeFromPrivateUse" value="${fieldValue(bean: monthlyReportInstance, field: 'totalIncomeFromPrivateUse')}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'totalKmCovered', 'error')} ">--%>
<%--	<label for="totalKmCovered">--%>
<%--		<g:message code="monthlyReport.totalKmCovered.label" default="Total Km Covered" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:field type="number" name="totalKmCovered" value="${fieldValue(bean: monthlyReportInstance, field: 'totalKmCovered')}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'costPerKm', 'error')} ">--%>
<%--	<label for="costPerKm">--%>
<%--		<g:message code="monthlyReport.costPerKm.label" default="Cost Per Km" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:field type="number" name="costPerKm" value="${fieldValue(bean: monthlyReportInstance, field: 'costPerKm')}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'averageKmPerLiter', 'error')} ">--%>
<%--	<label for="averageKmPerLiter">--%>
<%--		<g:message code="monthlyReport.averageKmPerLiter.label" default="Average Km Per Liter" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:field type="number" name="averageKmPerLiter" value="${fieldValue(bean: monthlyReportInstance, field: 'averageKmPerLiter')}"/>--%>
<%--</div>--%>
<%----%>
<%--<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'totalOperatingCost', 'error')} ">--%>
<%--	<label for="totalOperatingCost">--%>
<%--		<g:message code="monthlyReport.totalOperatingCost.label" default="Total Operating Cost" />--%>
<%--		--%>
<%--	</label>--%>
<%--	<g:field type="number" name="totalOperatingCost" value="${fieldValue(bean: monthlyReportInstance, field: 'totalOperatingCost')}"/>--%>
<%--</div>--%>

<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'startdate', 'error')} ">
	<label for="startdate">
		<g:message code="monthlyReport.startdate.label" default="Startdate" />
		
	</label>
	<g:datePicker name="startdate" precision="day"  value="${monthlyReportInstance?.startdate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: monthlyReportInstance, field: 'endDate', 'error')} ">
	<label for="endDate">
		<g:message code="monthlyReport.endDate.label" default="End Date" />
		
	</label>
	<g:datePicker name="endDate" precision="day"  value="${monthlyReportInstance?.endDate}"  />
</div>

